import request from '@/utils/request'


export function getDrainageList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/customer/admin/drainage/getList',
    method: 'post',
    data: query
  })
}   


export function saveDrainage(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/customer/admin/drainage/save',
    method: 'post',
    data: query
  })
}   

export function removeDrainage(query){
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/customer/admin/drainage/remove',
    method: 'post',
    data: query
  })
}

export function deleteDrainage(query){
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/customer/admin/drainage/delete',
    method: 'post',
    data: query
  })
}